home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Questions on promises.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Questions on promises
  2. Sent:        3/7/96 10:07 AM
  3. Received:    3/7/96 10:51 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >1) Do I have to implement MySelection::ExternalizeSelection if I use promises
  9. >for all my copy/paste stuff?
  10. >
  11. >2) I am a little confused about how to keep deleted stuff around when they
  12. >are promised. A senario I can envision is (say for a draw part): the user
  13. >selects some shapes, does a copy (it is promised only), deletes some of the
  14. >promised shapes, then does a save. I can easily keep the deleted shapes until
  15. >the save, but I would like to flush them at that time. Obviously then I have
  16. >a problem if they are promised. A big advantage for promises is to not have
  17. >to duplicate a huge amount of data until it is needed (for paste), so making
  18. >a copy of the promised shapes is not acceptable. What strategy do you all
  19. >suggest?
  20.  
  21. 1) No, you don't have to implement your MySelection::ExternalizeSelection 
  22. if you use promises unless you don't use promises for Drag&Drop. Both 
  23. Drag&Drop and clipboard are using the selection object.
  24.  
  25. 2) When promising you must keep track of your promised data. When 
  26. something changes your promised data you must tricker a fulfill promise 
  27. our save the original data. There is no good or bad way to do that. It 
  28. really depends on your data. ODFDraw fulfills promised if a promised 
  29. shape is changed. This is one way to do it.
  30.  
  31. Henri Lamiraux
  32. ODF Team
  33.